package org.hbhk.aili.job.configuration;

import com.dangdang.ddframe.job.executor.handler.ExecutorServiceHandler;
import com.dangdang.ddframe.job.executor.handler.JobExceptionHandler;

public class ElasticConfig {
	private String name;
	private String description;
	private String cron = "0/10 * * * *";
	private int shardingCount = 1;
	private boolean failover = true;
	private boolean misfire = false;

	private String shardingItemParameters;
	private String jobParameter;
	private boolean monitorExecution;
	private int maxTimeDiffSeconds;
	private int monitorPort;
	private String jobShardingStrategyClass;

	private boolean disabled;
	private boolean overwrite;
	private int reconcileIntervalMinutes;

	private boolean streamingProcess;
	private String scriptCommandLine;
	private Class<? extends JobExceptionHandler> jobExceptionHandler;
	private Class<? extends ExecutorServiceHandler> executorServiceHandler;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getCron() {
		return cron;
	}
	public void setCron(String cron) {
		this.cron = cron;
	}
	public int getShardingCount() {
		return shardingCount;
	}
	public void setShardingCount(int shardingCount) {
		this.shardingCount = shardingCount;
	}
	public boolean isFailover() {
		return failover;
	}
	public void setFailover(boolean failover) {
		this.failover = failover;
	}
	public boolean isMisfire() {
		return misfire;
	}
	public void setMisfire(boolean misfire) {
		this.misfire = misfire;
	}
	public String getShardingItemParameters() {
		return shardingItemParameters;
	}
	public void setShardingItemParameters(String shardingItemParameters) {
		this.shardingItemParameters = shardingItemParameters;
	}
	public String getJobParameter() {
		return jobParameter;
	}
	public void setJobParameter(String jobParameter) {
		this.jobParameter = jobParameter;
	}
	public boolean isMonitorExecution() {
		return monitorExecution;
	}
	public void setMonitorExecution(boolean monitorExecution) {
		this.monitorExecution = monitorExecution;
	}
	public int getMaxTimeDiffSeconds() {
		return maxTimeDiffSeconds;
	}
	public void setMaxTimeDiffSeconds(int maxTimeDiffSeconds) {
		this.maxTimeDiffSeconds = maxTimeDiffSeconds;
	}
	public int getMonitorPort() {
		return monitorPort;
	}
	public void setMonitorPort(int monitorPort) {
		this.monitorPort = monitorPort;
	}
	public String getJobShardingStrategyClass() {
		return jobShardingStrategyClass;
	}
	public void setJobShardingStrategyClass(String jobShardingStrategyClass) {
		this.jobShardingStrategyClass = jobShardingStrategyClass;
	}
	public boolean isDisabled() {
		return disabled;
	}
	public void setDisabled(boolean disabled) {
		this.disabled = disabled;
	}
	public boolean isOverwrite() {
		return overwrite;
	}
	public void setOverwrite(boolean overwrite) {
		this.overwrite = overwrite;
	}
	public int getReconcileIntervalMinutes() {
		return reconcileIntervalMinutes;
	}
	public void setReconcileIntervalMinutes(int reconcileIntervalMinutes) {
		this.reconcileIntervalMinutes = reconcileIntervalMinutes;
	}
	public boolean isStreamingProcess() {
		return streamingProcess;
	}
	public void setStreamingProcess(boolean streamingProcess) {
		this.streamingProcess = streamingProcess;
	}
	public String getScriptCommandLine() {
		return scriptCommandLine;
	}
	public void setScriptCommandLine(String scriptCommandLine) {
		this.scriptCommandLine = scriptCommandLine;
	}
	public Class<? extends JobExceptionHandler> getJobExceptionHandler() {
		return jobExceptionHandler;
	}
	public void setJobExceptionHandler(Class<? extends JobExceptionHandler> jobExceptionHandler) {
		this.jobExceptionHandler = jobExceptionHandler;
	}
	public Class<? extends ExecutorServiceHandler> getExecutorServiceHandler() {
		return executorServiceHandler;
	}
	public void setExecutorServiceHandler(Class<? extends ExecutorServiceHandler> executorServiceHandler) {
		this.executorServiceHandler = executorServiceHandler;
	}
	
	
}
